package com.ruoyi.crm.controller;

import com.ruoyi.crm.domain.Contract;
import com.ruoyi.crm.service.MonthDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/crm/monthData")
public class MonthDataController {
@Autowired
private MonthDataService monthDataService;

    @GetMapping("/list")
    public List<Contract> monthData(){
        return monthDataService.monthData();
    }
}
